package 练习程序;

public class 字符出现频率统计1 {
    public static void main(String[] args) {
        java.util.Scanner s = new java.util.Scanner(System.in);
        String s1 = s.nextLine();
        String s3 = s1.toLowerCase();
        String str = s3.replaceAll("[^a-z^A-Z]", "");
        //以上将输入的字符串转换成小写并去除中文，生成str字符串
        int count = 0;
        String str1 = "abcdefghijklmnopqrstuvwxyz";
        for (int i = 0; i < str1.length(); i++) {
            count = 0;
            for (int j = 0; j < str.length(); j++) {
                if (str.charAt(j) == str1.charAt(i)) {
                    count++;
                }
            }
            if (count != 0) {
                System.out.print(str1.charAt(i) + "=" + count + "  ");
            }
        }
    }
}